($products[0].items | map({(.string): .display_name}) | add) as $product_names |
(["| Product | CVEs |",
  "| ------- | ---- |"] +
 [.product_cves | to_entries[] |
  "| \($product_names[.key] // .key) | \(.value | length) |"]) |
.[]